<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class Application_Controllers_WorkPeopleController {

    public function __construct($action) {
        switch ($action) {
            case 'ListAction':
                $this->_listAllWorkPeople();
                break;
            case 'ShowRegisterAction':
                $this->_showRegister();
                break;
            case 'ShowIndexAction':
                $this->_showRegister();
                break;
        }
    }

    private function _listAllWorkPeople() {
        $objModelWorkPeople = new Application_Models_WorkPeopleModel();
        $objModelWorkPeople->_listAllWorkPeople();
    }
    
    private function _showRegister(){
        $objViewWorkPeople= new Application_Views_WorkPeopleView();
        $objViewWorkPeople->showRegister();
    }

}
